package cn.ywsj.ywsjmidtier.controller;

import cn.ywsj.ywsjmidtier.service.WechatLeaveWordsFeign;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "留言")
@RestController
@RequestMapping("/wechat/member/leavewordsmgr")
public class WechatLeaveWordsController {

    @Autowired
    private WechatLeaveWordsFeign wordsFeign;

    /**
     * 留言消息
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("留言消息")
    @PostMapping({"/ajaxtoleavewordslist"})
    public String indexToLeavewordsList(Integer start,Integer pageSize) {
        return wordsFeign.indexToLeavewordsList(start,pageSize);

    }
}
